﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TA.DotNetUtils
{
	public static class GuidEx
	{
		public static bool TryParse(string s)
		{
			try
			{
				Guid result = new Guid(s);
				return true;
			}
			catch
			{
				return false;
			}
		}
		public static Guid? Parse(string s)
		{
			Guid? result = null;
			try
			{
				result = new Guid(s);
			}
			catch
			{
			}
			return result;
		}
	}
}
